package org.projectwithoutname.application.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.projectwithoutname.ui.view.EpisodesView;
import org.projectwithoutname.ui.view.InformationView;

public class IntPerspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	public static final String ID = "org.ProjectWithoutName.application.seriePerspective";
	
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);
		
		layout.addView(EpisodesView.ID, IPageLayout.RIGHT, 0.75f, editorArea);
		layout.addStandaloneView(InformationView.ID, false, IPageLayout.TOP | IPageLayout.LEFT, 0.55f, editorArea);
		layout.getViewLayout(InformationView.ID).setCloseable(false);
		layout.getViewLayout(EpisodesView.ID).setCloseable(false);
	}
}
